import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
  { path: '', redirectTo: 'home', pathMatch: 'full' },
  { path: 'home', loadChildren: './home/home.module#HomePageModule' },
  { path: 'home/:data', loadChildren: './home/home.module#HomePageModule' },
  { path: 'login', loadChildren: './login/login.module#LoginPageModule' },
  { path: 'daily-report', loadChildren: './water-chart/daily-report/daily-report.module#DailyReportPageModule' },
  { path: 'month-report', loadChildren: './water-chart/month-report/month-report.module#MonthReportPageModule' },
  { path: 'month-distribution-report', loadChildren: './water-chart/month-distribution-report/month-distribution-report.module#MonthDistributionReportModule' },
  { path: 'month-water-report', loadChildren: './water-chart/month-water-report/month-water-report.module#MonthWaterReportModule' },
  { path: 'cost', loadChildren: './water-chart/cost/cost.module#CostModule' },
  { path: 'sell', loadChildren: './water-chart/sell/sell.module#SellModule' },
  { path: 'scada', loadChildren: './water-chart/scada/scada.module#ScadaPageModule' },
  { path: 'scada-detail',  loadChildren: './water-chart/scada-detail/scada-detail.module#ScadaDetailPageModule' },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
